// pages/group/group.js

Page({
    data: {
        groups: [
            { name: 'Group A', description: 'This is group A' },
            { name: 'Group B', description: 'This is group B' },
            { name: 'Group C', description: 'This is group C' },
        ]
    },

    onLoad: function () {
        console.log('Page group loaded.');
    },

    onTapGroup: function (event) {
        const groupName = event.currentTarget.dataset.name;
        console.log('Clicked on group:', groupName);
        // 可以在这里添加更多的交互逻辑
    }
});
